package tv.danmaku.ijk.media.player.misc;

import android.annotation.TargetApi;
import android.media.MediaFormat;

public class AndroidMediaFormat implements IMediaFormat {
    private final MediaFormat mMediaFormat;

    public AndroidMediaFormat(MediaFormat arg1) {

        this.mMediaFormat = arg1;
    }

    @TargetApi(value=16) public int getInteger(String arg2) {
        int v0 = this.mMediaFormat == null ? 0 : this.mMediaFormat.getInteger(arg2);
        return v0;
    }

    @TargetApi(value=16) public String getString(String arg2) {
        String v0 = this.mMediaFormat == null ? null : this.mMediaFormat.getString(arg2);
        return v0;
    }

    @TargetApi(value=16) public String toString() {
        StringBuilder v0 = new StringBuilder(128);
        v0.append(this.getClass().getName());
        v0.append('{');
        if(this.mMediaFormat != null) {
            v0.append(this.mMediaFormat.toString());
        }
        else {
            v0.append("null");
        }

        v0.append('}');
        return v0.toString();
    }
}

